<!DOCTYPE html>
<html lang="en">
<head>

	<meta charset="utf-8">
	<title>Login Page</title>
	<link rel="stylesheet" href="<?php echo base_url();?>/application/development-bundle/themes/custom-theme/jquery.ui.all.css">
	<link rel="stylesheet" href="<?php echo base_url();?>/application/css/style.css">
	<script src="<?php echo base_url();?>/application/development-bundle/jquery-1.4.4.js"></script>
	<script src="<?php echo base_url();?>/application/development-bundle/ui/jquery.ui.core.js"></script>
	<script src="<?php echo base_url();?>/application/development-bundle/ui/jquery.ui.widget.js"></script>
	<script src="<?php echo base_url();?>/application/development-bundle/ui/jquery.ui.accordion.js"></script>
	<link rel="stylesheet" href="<?php echo base_url();?>/application/development-bundle/demos/demos.css">
	
	<script>
	$(function() {
		$( "#accordion" ).accordion({
			autoHeight: false,
			navigation: true,
			collapsible: true
		});
	});
	</script>
	
	<script>
	function OnSubmitForm(){
		if(document.pressed == "Login"){
			if(document.adminlogin.username.value!=""&&document.adminlogin.password.value!=""){
				document.adminlogin.action ="<?php echo base_url();?>/index.php/loginPageController/validate_entry/";
				return true;
			}else{
				alert("Fill out all fields!");
				return false;
			}
		}
	}
	</script>
	
</head>

<body>

<div class="demo">

	<div id="header"><h1>ACCI eXtreme Information System</h1></div>
	
	<div id="accordion">
	
		<h3><a href="#section1">Administrator's Login</a></h3>
		<form name="adminlogin" method="post" onSubmit="return OnSubmitForm()">
			<div>
				<ul>
					<li>Username<br/><input type="text" name="username"/></li>
					<li>Password<br/><input type="password" name="password"/></li>
				</ul>
				<input type="submit" value="Login" onClick="document.pressed=this.value"/>
			</div>
		</form>
		
	</div><!-- End accordion -->
	
</div><!-- End demo -->

</body>
</html>
